package cn.xopencode.userservice.enums;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 最高学历
 */
public enum EducationEnum implements IntArrayValuable {

    EDUCATION0(0, "未知"),
    EDUCATION1(1, "博士"),
    EDUCATION2(2, "硕士"),
    EDUCATION3(3, "本科"),
    EDUCATION4(4, "专科"),
    EDUCATION5(5, "高中"),
    EDUCATION6(6, "初中"),
    EDUCATION7(7, "小学");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(EducationEnum::getHealth).toArray();

    /**
     * 性别标识
     */
    private final Integer health;
    /**
     * 描述
     */
    private final String name;

    EducationEnum(Integer health, String name) {
        this.health = health;
        this.name = name;
    }

    public Integer getHealth() {
        return health;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
